<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
	<jsp:include page="../common/header.jsp"/>
	<jsp:include page="../../common/mydate.jsp"></jsp:include>
	<jsp:include page="../../common/validform.jsp"></jsp:include>
	<jsp:include page="../../common/layer.jsp"></jsp:include>

</head>
<body>
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="${pathUrl}/admin/newsCatalog/index">新闻分类</a></li>
        <li><a href="#">新增</a></li>
    </ul>
</div>
<form action="${pathUrl}/admin/newsCatalog/saveOrUpdate" class="vfrom" enctype="multipart/form-data" method="post"  enctype="application/x-www-form-urlencoded">
<input type="hidden" name="id" value="${newsCatalog.id }">
<input type="hidden" name="is_add" value="${is_add }">
<div class="session-main">
    <div class="formbody">
        <ul class="forminfo">
          <li><label>上级分类<b>*</b></label>
                <select name="catalogId" id="catalogId">
                	<option value="0">顶级</option>
                	<c:forEach var="vo" items="${newsCatalogVos }">
                		<c:choose>
                		  <c:when test="${vo.newsCatalog.id eq newsCatalog.catalogId }">
                		     <option value="${vo.newsCatalog.id }" selected="selected">&nbsp;&nbsp;&nbsp;&nbsp;${vo.newsCatalog.name }</option>
                		  </c:when>
                		  <c:otherwise>
                		   <option value="${vo.newsCatalog.id }" >&nbsp;&nbsp;&nbsp;&nbsp;${vo.newsCatalog.name }</option>
                		  </c:otherwise>
                		</c:choose>
                	</c:forEach>
                </select>
             </li>
            <li><label>名称<b>*</b></label><input value="${newsCatalog.name }" datatype="*" nullmsg="请输入类型名称！" name="name" id="name"  type="text" class="dfinput"><i class="Validform_checktip">请输入名称</i></li>
            <li><label>备注</label><textarea name="remark" cols="" rows="" class="textinput">${newsCatalog.remark }</textarea></li>
            <li><label>&nbsp;</label><input name="" type="submit" class="btn" value="确认保存">
               <input type="button" class="btn" onclick="javascript:window.location.href='${pathUrl}/admin/newsCatalog/index'" value="返回" style=" background: #57e980;">
            </li>
        </ul>
    </div>
</div>
</form>
    <script type="text/javascript">

 </script>
</body>
</html>